package com.liuxu.topnews.acitivity;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.liuxu.topnews.BuildConfig;
import com.liuxu.topnews.R;

public class InfoFragment extends Fragment {
//    public static HomeFragment newInstance(String param1) {
//        HomeFragment fragment = new HomeFragment();
//        Bundle args = new Bundle();
//        args.putString("agrs1", param1);
//        fragment.setArguments(args);
//        return fragment;
//    }

    public InfoFragment() {

    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view;
        switch (BuildConfig.version){
            case "normal":
                view = inflater.inflate(R.layout.info_fragment_normal, container, false);
                return view;
            case "agent":
                view = inflater.inflate(R.layout.info_fragment_agent, container, false);
                return view;
            case "dream":
                view = inflater.inflate(R.layout.info_fragment_dream, container, false);
                return view;
            case "rich":
                view = inflater.inflate(R.layout.info_fragment_rich, container, false);
                return view;
            case "mc":
                view = inflater.inflate(R.layout.info_fragment_mc, container, false);
                return view;
            case "compass":
                view = inflater.inflate(R.layout.info_fragment_compass, container, false);
                return view;
            case "hw":
                view = inflater.inflate(R.layout.info_fragment_hw, container, false);
                return view;
            case "xm":
                view = inflater.inflate(R.layout.info_fragment_hw, container, false);
                return view;
            case "read":
                view = inflater.inflate(R.layout.info_fragment_read, container, false);
                return view;
            case "yang":
                view = inflater.inflate(R.layout.info_fragment_yang, container, false);
                return view;
            case "king":
                view = inflater.inflate(R.layout.info_fragment_king, container, false);
                return view;
            case "enews":
                view = inflater.inflate(R.layout.info_fragment_enews, container, false);
                return view;
            case "book":
                view = inflater.inflate(R.layout.info_fragment_book, container, false);
                return view;
            case "zero":
                view = inflater.inflate(R.layout.info_fragment_zero, container, false);
                return view;
            default:
                view = inflater.inflate(R.layout.info_fragment_agent, container, false);
                return view;
        }
    }
}
